chrome.tabs.onCreated.addListener(function(tab) {
	closeTab(tab); 
});
chrome.tabs.onUpdated.addListener(function(tabId,changeInfo,tab) { 
	closeTab(tab); 
});
function closeTab(tab) {
	var url = tab.url;  
	var status = tab.status;
	if(status == "loading")
	{
		var url = tab.url;
		if(!(url.match("qzone.qq.com") == null) ||
			!(url.match("weibo.com") == null) ||
			!(url.match("renren.com") == null) ||
			!(url.match("google.com/reader/") == null))
		{
			chrome.tabs.remove(tab.id);
		}
	}
}
function timeCompare() {

	var date = new Date();
	var day = date.getDay();//周几0~6
	var hour = date.getHours();
	var minute = date.getMinutes();
}
